package com.tianyadu.security.core.validate.code.image;

import com.tianyadu.security.core.validate.code.ValidateCode;
import lombok.Data;
import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

/**
 * @FileName: ImageCode
 * @Description: 图片验证码
 * @author: xueyj
 * @create: 2018-12-11 06:57
 */
public class ImageCode extends ValidateCode {

   	/** BufferedImage */
	private BufferedImage image;
	
	public ImageCode(BufferedImage image, String code, int expireIn){
		super(code, expireIn);
		this.image = image;
	}
	
	public ImageCode(BufferedImage image, String code, LocalDateTime expireTime){
		super(code, expireTime);
		this.image = image;
	}

	public BufferedImage getImage() {
		return image;
	}

	public void setImage(BufferedImage image) {
		this.image = image;
	}
}
